package com.an_yang_gang_yie.an_yang_gang_yie.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘蓝天
 * @since 2021-06-18
 */
@ApiModel(value="Log对象", description="")
public class Log implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志id")
    @TableId(value = "log_id", type = IdType.ASSIGN_UUID)
    private String logId;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime upTime;

    @ApiModelProperty(value = "0启用 1 弃用")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "当前操作用户名字")
    private String username;

    @ApiModelProperty(value = "请求类型")
    private String method;

    @ApiModelProperty(value = "请求参数")
    private String parameter;

    @ApiModelProperty(value = "当前管理员所属公司主体")
    private String mainBodyId;

    @ApiModelProperty(value = "主体id")
    private String userId;

    @ApiModelProperty(value = "访问者ip地址")
    private String ip;

    @ApiModelProperty(value = "路由地址")
    private String url;


    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public LocalDateTime getUpTime() {
        return upTime;
    }

    public void setUpTime(LocalDateTime upTime) {
        this.upTime = upTime;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getParameter(String s) {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }

    public String getMainBodyId() {
        return mainBodyId;
    }

    public void setMainBodyId(String mainBodyId) {
        this.mainBodyId = mainBodyId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "Log{" +
        "logId=" + logId +
        ", upTime=" + upTime +
        ", isDelete=" + isDelete +
        ", createTime=" + createTime +
        ", username=" + username +
        ", method=" + method +
        ", parameter=" + parameter +
        ", mainBodyId=" + mainBodyId +
        ", userId=" + userId +
        ", ip=" + ip +
        ", url=" + url +
        "}";
    }
}
